<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>

<div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>供应商管理页面 >> 供应商添加页面</span>
        </div>
        <div class="providerAdd">
            <fm:form method="post" modelAttribute="provider">
                <input type="hidden" name="method" value="add">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="proCode">
                        <fm:errors path="proCode"/><br/>
                        供应商编码：
                    </label>
                    <fm:input path="proCode"/>
                    <!-- 放置提示信息 -->
                    <font color="red"> </font>
                </div>
                <br>
                    <label for="proName">
                        <fm:errors path="proName"/><br/>
                        供应商名称：
                    </label>
                    <fm:input path="proName"/>
                    <font color="red"></font>
                <div>
                    <label for="proContact">
                        <fm:errors path="proContact"/><br/>
                        联系人：
                    </label>
                    <fm:input path="proContact"/>
                    <font color="red"></font>

                </div>
                <div>
                    <label for="proPhone">
                        <fm:errors path="proPhone"/><br/>
                        联系电话：
                    </label>
                    <fm:input path="proPhone"/>
                    <font color="red"></font>
                </div>
                <div>
                    <label for="proAddress">
                        <fm:errors path="proAddress"/><br/>
                        联系地址：
                    </label>
                    <fm:input path="proAddress"/>
                    <font color="red"></font>
                </div>
                <div>
                    <label for="proFax">
                        <fm:errors path="proFax"/><br/>
                        传真：
                    </label>
                    <fm:input path="proFax"/>
                    <font color="red"></font>
                </div>
                <div>
                    <label for="proDesc">
                        <fm:errors path="proDesc"/><br/>
                        描述：
                    </label>
                    <fm:input path="proDesc"/>
                    <font color="red"></font>
                </div>
                <div class="providerAddBtn">
                    <input type="submit" name="add" id="add" value="保存">
                    <input type="button" id="back" name="back" value="返回" >
                </div>
            </fm:form>
        </div>
     </div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/provideradd.js"></script>
